package top.saodisheng.pojo;

import org.springframework.beans.factory.BeanNameAware;

/**
 * @author saodisheng
 * @date 2021/8/19
 */
public class User implements BeanNameAware {
	private Long id;
	private String name;
	private City city;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public City getCity() {
		return city;
	}

	public void setCity(City city) {
		this.city = city;
	}

	@Override
	public String toString() {
		return "User{" +
				"id=" + id +
				", name='" + name + '\'' +
				", city=" + city +
				'}';
	}

	@Override
	public void setBeanName(String name) {

	}
}
